
<?php

foreach ($this->container as $page) {
	$id = "";
	$front = Zend_Controller_Front::getInstance();
	$action = $front->getRequest()->getActionName();
	$controller = $front->getRequest()->getControllerName();
	if(strtolower($page) == $action || 
		(strtolower($page) == $controller && $action == 'index') ||
		($controller == 'index' && $action == 'index' && $page && strtolower($page) == 'home')) {
		$id = " id=\"active\"";
	}
    echo "<tr align=\"left\"><td class=\"mainlevel\"$id>" . $this->navigation()->menu()->htmlify($page), PHP_EOL . "</td></tr> ";
}

?>
